package com.huayue.service;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.huayue.dao.BaseDao;
import com.huayue.dao.ProductDao;
import com.huayue.entity.Product;

/**
 * 商品
 * 
 */
@Service
public class ProductService extends BaseService<Product> {
    @Autowired
    ProductDao productDao;

    public List<Map<String, Object>> findProductByReal_Number() {
        return productDao.findProductByReal_Number();
    }

    @Override
    public BaseDao<Product> getDao() {
        return productDao;
    }

    public List<Map<String, Object>> findAllProduct() {
        return productDao.findAllProduct();
    }
}
